package com.kmzx.one.common.exceptions;


public class OrderErrorException extends RuntimeException {

    private String message;

    private Integer states;

    @Override
    public String getMessage() {
        return message;
    }

    public OrderErrorException setMessage(String message) {
        this.message = message;
        return this;
    }

    public Integer getStates() {
        return states;
    }

    public OrderErrorException setStates(Integer states) {
        this.states = states;
        return this;
    }

    public OrderErrorException(Throwable cause) {
        super(cause);
    }

    public OrderErrorException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public OrderErrorException(String message) {
        super(message);
    }

    public OrderErrorException(int states,String message){
        super(message);
        this.states = states;
    }
}
